package com.wxm.killing.mq.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import javax.persistence.*;

/**
 * 匹配订单
 * 
 * @author wxm
 * @email xiaomin.wu1@pactera.com
 * @version 2019-11-05 14:57:58
 */
@Data
@Table(name = "tb_contract_rush_order")
public class TbContractRushOrder implements Serializable {
    private static final long serialVersionUID=1L;
   /**
    * 编号
    */
	@Id
	private Integer orderId;
   /**
    * 1:申购 2:抢购
    */
	@Column(name = "type")
	private Integer type;
   /**
    * 
    */
	@Column(name = "contract_id")
	private Integer contractId;
   /**
    * 订单号
    */
	@Column(name = "order_sn")
	private String orderSn;
   /**
    * 
    */
	@Column(name = "number")
	private BigDecimal number;
   /**
    * 创建时间
    */
	@Column(name = "create_time")
	private Date createTime;
   /**
    * 0:待付款 1:买家已付款  2:卖家已收款(交易完成) 3:已完成(已经生成出售单) -1:取消
    */
	@Column(name = "status")
	private Integer status;
   /**
    * 用户编号
    */
	@Column(name = "buy_id")
	private Integer buyId;
   /**
    * 
    */
	@Column(name = "buy_sn")
	private String buySn;
   /**
    * 
    */
	@Column(name = "buy_user_id")
	private String buyUserId;
   /**
    * 
    */
	@Column(name = "buy_pay_address")
	private String buyPayAddress;
   /**
    * 确认时间
    */
	@Column(name = "buy_confirm_time")
	private Date buyConfirmTime;
   /**
    * 
    */
	@Column(name = "buy_image_url")
	private String buyImageUrl;
   /**
    * 
    */
	@Column(name = "buy_is_overtime")
	private Integer buyIsOvertime;
   /**
    * 超时时间
    */
	@Column(name = "buy_overtime")
	private Date buyOvertime;
   /**
    * 是否已经创建出售单
    */
	@Column(name = "buy_is_create_sell_order")
	private Integer buyIsCreateSellOrder;
   /**
    * 用户编号
    */
	@Column(name = "sell_id")
	private Integer sellId;
   /**
    * 
    */
	@Column(name = "sell_sn")
	private String sellSn;
   /**
    * 
    */
	@Column(name = "sell_user_id")
	private String sellUserId;
   /**
    * 
    */
	@Column(name = "sell_pay_address")
	private String sellPayAddress;
   /**
    * 完成时间
    */
	@Column(name = "sell_confirm_time")
	private Date sellConfirmTime;
   /**
    * 
    */
	@Column(name = "sell_is_overtime")
	private Integer sellIsOvertime;
   /**
    * 
    */
	@Column(name = "sell_overtime")
	private Date sellOvertime;
   /**
    * 取消时间
    */
	@Column(name = "cancel_time")
	private Date cancelTime;
   /**
    * 完成时间
    */
	@Column(name = "done_time")
	private Date doneTime;
   /**
    * 是否投诉
    */
	@Column(name = "complaint")
	private Integer complaint;
   /**
    * 投诉处理状态
    */
	@Column(name = "complaint_status")
	private Integer complaintStatus;
   /**
    * 第二次投诉才是进入投诉，第一次重新打款
    */
	@Column(name = "complaint_count")
	private Integer complaintCount;
   /**
    * 投诉内容
    */
	@Column(name = "complaint_content")
	private String complaintContent;
   /**
    * 投诉时间
    */
	@Column(name = "complaint_time")
	private Date complaintTime;
   /**
    * 惩罚机制，1：扣除买家  2：扣除卖家
    */
	@Column(name = "complaint_handle_punishment_type")
	private Integer complaintHandlePunishmentType;
   /**
    * 冻结机制，1：冻结买家 2：冻结卖家
    */
	@Column(name = "complaint_handle_lock_type")
	private Integer complaintHandleLockType;
   /**
    * 系统说明
    */
	@Column(name = "complaint_handle_content")
	private String complaintHandleContent;
   /**
    * 惩罚数量
    */
	@Column(name = "complaint_handle_number")
	private BigDecimal complaintHandleNumber;
   /**
    * 惩罚金额
    */
	@Column(name = "complaint_handle_money")
	private BigDecimal complaintHandleMoney;
   /**
    * 处理时间
    */
	@Column(name = "complaint_handle_time")
	private Date complaintHandleTime;
   /**
    * 商铺租约-锁定周期
    */
	@Column(name = "lease_day")
	private Integer leaseDay;
   /**
    * 
    */
	@Column(name = "lease_day_expire_time")
	private Date leaseDayExpireTime;
   /**
    * 收益百分比
    */
	@Column(name = "lease_profit_rate")
	private String leaseProfitRate;
   /**
    * 收益数量
    */
	@Column(name = "lease_profit_number")
	private BigDecimal leaseProfitNumber;
   /**
    * 租金燃烧--区块燃烧百分比
    */
	@Column(name = "lease_burning_rate")
	private String leaseBurningRate;
   /**
    * 到期时间
    */
	@Column(name = "lease_burning_number")
	private BigDecimal leaseBurningNumber;
}
